package com.csun.cmny.provider.service.impl;

import com.csun.cmny.provider.dao.OldmanTendMapper;
import com.csun.cmny.provider.pojo.OldmanInfo;
import com.csun.cmny.provider.pojo.OldmanTend;
import com.csun.cmny.provider.service.OldmanTendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class OldmanTendServiceImpl implements OldmanTendService {
    @Resource
    private OldmanTendMapper oldmanTendMapper;

    @Override
    public int deleteByPrimaryKey(Integer tendId) {
        return oldmanTendMapper.deleteByPrimaryKey(tendId);
    }

    @Override
    public int insert(OldmanTend record) {
        return oldmanTendMapper.insert(record);
    }

    @Override
    public int insertSelective(OldmanTend record) {
        return oldmanTendMapper.insertSelective(record);
    }

    @Override
    public OldmanTend selectByPrimaryKey(Integer tendId) {
        return oldmanTendMapper.selectByPrimaryKey(tendId);
    }

    @Override
    public int updateByPrimaryKeySelective(OldmanTend record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(OldmanTend record) {
        return 0;
    }

    @Override
    public List<OldmanInfo> getAllTends(Map<String, Object> queryMap) {
        return oldmanTendMapper.getAllTends(queryMap);
    }

    @Override
    public int delOldTendByOid(Integer oldmanId) {
        return oldmanTendMapper.delOldTendByOid(oldmanId);
    }

    @Override
    public List<OldmanInfo> getAllOldman(Map<String, Object> queryMap) {
        return oldmanTendMapper.getAllOldman(queryMap);
    }
}
